package com.biwin.module.org.domain.entity;

import com.biwin.module.orm.api.entity.BwBasicEntity;

import javax.persistence.*;

/**
 * 系统用户与岗位关系表
 *
 * @author biwin
 * @since 0.0.1
 */
@Entity
@Table(name = "system_user_position")
@org.hibernate.annotations.Table(appliesTo = "system_user_position", comment = "系统用户与岗位关系表")
public class SystemUserPosition extends BwBasicEntity {

    private static final long serialVersionUID = -231711867062026948L;
    @Column(name = "system_user_id", columnDefinition = "BIGINT(20) NOT NULL COMMENT '用户id' ")
    private Long systemUser;

    @Column(name = "position_id", columnDefinition = "BIGINT(20) NOT NULL COMMENT '岗位ID' ")
    private Long position;

    @Column(name = "main_postion", columnDefinition = "BIT(1) NOT NULL DEFAULT B'0' COMMENT '是否是主岗位' ")
    private Boolean mainPosition;

    public Long getSystemUser() {
        return systemUser;
    }

    public void setSystemUser(Long systemUser) {
        this.systemUser = systemUser;
    }

    public Long getPosition() {
        return position;
    }

    public void setPosition(Long position) {
        this.position = position;
    }

    public Boolean getMainPosition() {
        return mainPosition;
    }

    public void setMainPosition(Boolean mainPosition) {
        this.mainPosition = mainPosition;
    }

}
